package design.mode.chapter3.item3.versionPlus.reporter;

import design.mode.chapter3.item3.versionPlus.Stroage.MetricsStorage;
import design.mode.chapter3.item3.versionPlus.Stroage.RedisMetricsStorage;
import design.mode.chapter3.item3.versionPlus.aggregator.Aggregator;
import design.mode.chapter3.item3.versionPlus.viewer.ConsoleViewer;
import design.mode.chapter3.item3.versionPlus.viewer.StatViewer;

public class ConsoleReporter extends ScheduledReporter {

    // 兼顾代码的易用性，新增一个封装了默认依赖的构造函数
    public ConsoleReporter() {
        this(new RedisMetricsStorage(), new Aggregator(), new ConsoleViewer());
    }

    public ConsoleReporter(MetricsStorage metricsStorage, Aggregator aggregator, StatViewer viewer) {
        super(metricsStorage, aggregator, viewer);
    }

    public void startRepeatedReport(int i, int i1) {

    }
}
